<template>
    
</template>
<script>
export default {
    data(){
        return{

        }
    },
    mounted(){

        this.shiFouDengLu();
    },
    methods:{
        shiFouDengLu(){
            var normalHeight=document.documentElement.clientHeight;
            sessionStorage.setItem('normalHeight',normalHeight);
            var URL=this.IP.IP+'/user/loginTry';
            this.$ajax({
                    method:'post',
                    url:URL,
                }).then(response =>{
                   if(response.data.data==true){
                        this.$router.push({
                            path:'/peiXun'
                        })
                   }else{
                        this.$router.push({
                            path:'/login'
                        })
                   }
                }).catch(error => {
                console.log('这里');
                console.log(error);
                });
        },
    },
}
</script>
<style>

</style>
